package utils

import (
	"fmt"
	"os"
	"sync"
	"time"
)

var uuidInt int64
var uuidMutex = new(sync.Mutex)

func MakeUUID() string {
	uuidMutex.Lock()
	defer uuidMutex.Unlock()
	uuidInt++
	return fmt.Sprintf("%x%x%x", int64(os.Getpid()), uuidInt, time.Now().Unix())
}
